/* KPI指标看板样式 */
.kpi-dashboard {
    padding: 24px;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.kpi-overview {
    background: linear-gradient(135deg, var(--bg-container) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.kpi-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.metric-card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.metric-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.metric-value {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #2196f3, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.metric-trend {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: fit-content;
    font-weight: 600;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.metric-trend.positive {
    color: #52c41a;
}

.metric-trend.negative {
    color: #f5222d;
}

/* 图表容器样式 */
.chart-container {
    background: var(--bg-container);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 16px;
    font-weight: 500;
}

/* 预警提示样式 */
.alert-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.alert-indicator.warning {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.alert-indicator.danger {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}